package com.serookie.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/5/5 22:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="轮播图对象", description="关于轮播图")
@TableName(value = "mall_images")
public class Images{
   @ApiModelProperty("主键id")
   @TableId(type = IdType.AUTO)
   private Integer id;
   @ApiModelProperty(value = "商品id")
   private  Integer goodsId;
   @ApiModelProperty(value = "打开方式")
    private String openType;
   @ApiModelProperty(value = "图片地址")
   private String imagesSrc;
   @ApiModelProperty(value = "导航地址")
   private String  navigatorUrl;
   @ApiModelProperty("创建时间")
   @TableField(fill = FieldFill.INSERT)
   private Date createTime;
   @ApiModelProperty("修改时间")
   @TableField(fill = FieldFill.INSERT_UPDATE)
   private Date updateTime;
   @TableField(exist = false)
   @ApiModelProperty(value = "商品名称")
   private String GoodsName;

}
